package com.aspose.cells;

public class CalculationOptions {
   static boolean a = "OLD".equals(com.aspose.cells.a.c.zo.a("Aspose.Cells.FormulaEngine"));
   boolean b = true;
   ICustomFunction c;
   int d = -1;
   int e = 0;
   zahi f;
   boolean g;
   boolean h;
   zym i;

   public CalculationOptions() {
      this.f = zamx.a;
      this.g = true;
      this.h = true;
      this.i = new zym();
   }

   public boolean getIgnoreError() {
      return this.b;
   }

   public void setIgnoreError(boolean value) {
      this.b = value;
   }

   public ICustomFunction getCustomFunction() {
      return this.c;
   }

   public void setCustomFunction(ICustomFunction value) {
      this.c = value;
      if (value != null) {
         this.g = false;
      }

   }

   public int getCalcStackSize() {
      return this.d;
   }

   public void setCalcStackSize(int value) {
      this.d = value;
   }

   public int getPrecisionStrategy() {
      return this.e;
   }

   public void setPrecisionStrategy(int value) {
      if (this.e != value) {
         this.e = value;
         if (value == 0) {
            this.f = zamx.a;
         } else if (value == 1) {
            this.f = zamy.a;
         } else {
            this.f = zamw.a;
         }
      }

   }
}
